package kr.co.smartmedia;

import kr.co.smartmedia.Page2;
import kr.co.smartmedia.R;
import kr.co.smartmedia.Page3;
import kr.co.smartmedia.Page8;
import kr.co.smartmedia.Page4;
import kr.co.smartmedia.About;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import android.view.View;
import android.view.View.OnClickListener;
import android.content.Intent;

public class Page2 extends Activity {
	 /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        ImageView client_mainmenu_1 = (ImageView) findViewById(R.id.client_mainmenu_1);
        ImageView client_mainmenu_2 = (ImageView) findViewById(R.id.client_mainmenu_2);
        ImageView client_mainmenu_3 = (ImageView) findViewById(R.id.client_mainmenu_3);
        ImageView client_mainmenu_4 = (ImageView) findViewById(R.id.client_mainmenu_4);
        
        client_mainmenu_1.setOnClickListener(
        		new OnClickListener(){
        			public void onClick(View v){
        				Intent intent = new Intent(Page2.this, Page3.class);
        				startActivity(intent);
        			}
        		}
        		);
        client_mainmenu_2.setOnClickListener(
        		new OnClickListener(){
        			public void onClick(View v){
        				Intent intent = new Intent(Page2.this, Page8.class);
        				startActivity(intent);
        			}
        		}
        		);
        client_mainmenu_3.setOnClickListener(
        		new OnClickListener(){
        			public void onClick(View v){
        				Intent intent = new Intent(Page2.this, Page4.class);
        				startActivity(intent);
        			}
        		}
        		);
        client_mainmenu_4.setOnClickListener(
        		new OnClickListener(){
        			public void onClick(View v){
        				Intent intent = new Intent(Page2.this, About.class);
        				startActivity(intent);
        			}
        		}
        		);
    }
}